const util = require('../../../../../../../utils/util.js');
const api = require('../../../../../../../config/api.js');
const app = getApp()
Page({
  data: {
    circleid: "",//圈子id
    qiyuetishi: false,//契约金提示面板
  },
  onLoad: function (options) {
    var _this = this;
    var circleid = options.circleid;
    _this.setData({
      circleid: circleid
    })
    console.log(circleid)
  },
  //跳转到基础设置页面
  gofoundationsetup: function () {
    var _this = this;
    var circleid = _this.data.circleid;
    wx.navigateTo({
      url: '../foundationsetup/foundationsetup?circleid=' + circleid
    })
  },
  //跳转到成员管理页面
  gouserManage: function () {
    var _this = this;
    var circleid = _this.data.circleid;
    wx.navigateTo({
      url: '../../../../../../../grade/pages/grade/memberManage/memberManage?circleid=' + circleid
    })
  },
  //跳转到编辑页面
  navigateToEditdetails: function () {
    var _this = this;
    var circleid = _this.data.circleid;
    wx.navigateTo({
      url: '../../../editdetails/editdetails?circleid=' + circleid + "&energyInfoResults=false"
    })
  },
  //跳转成长契约
  goCreatecontract: function(){
    var _this = this;
    var circleid = _this.data.circleid;
    wx.navigateTo({
      url: '../../createcontract/createcontract?circleid=' + circleid
    })
  },
  //打开契约金提示面板
  openTishi: function(){
    var _this = this
    _this.setData({
      qiyuetishi: true
    })
  },
  //关闭弹窗
  closeMC: function(){
    var _this = this
    _this.setData({
      qiyuetishi: false
    })
  },

  /**
   * 进入主题管理
   */
  navigateToThemManage: function () {
    var _this = this;
    wx.navigateTo({
      url: "/interest/pages/interest/theme/themManage/themManage?circleid=" + _this.data.circleid
    })
  }
})